# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=against
pkgver=0.2
pkgrel=5
epoch=1
pkgdesc='A very fast ssh attacking script which includes a multithreaded port scanning module (tcp connect) for discovering possible targets and a multithreaded brute-forcing module which attacks parallel all discovered hosts or given ip addresses from a list.'
groups=('blackarch' 'blackarch-cracker')
url='http://nullsecurity.net/tools/cracker.html'
arch=('any')
license=('custom')
depends=('python2-paramiko')
source=("https://raw.githubusercontent.com/nullsecuritynet/tools/master/cracker/$pkgname/release/$pkgname.py")
sha512sums=('694f7cbfd25f5a2b19666a2b29916ea98cf32d82c821a5b1030fcaff048c6e3ccc3952aec0e97ead37dae4a3504e0d9576c158180917f5d02b37f8a10fc65b35')

prepare() {
  sed -i 's|env python|env python2|' "$pkgname.py"
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

